package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户消费明细记录对象 t_consumption_record
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TConsumptionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消费记录ID，自增主键 */
    private Long consumptionRecordId;

    /** 用户ID，关联t_user_info表 */
    @Excel(name = "用户ID，关联t_user_info表")
    private Long userId;

    /** 支付订单号 */
    @Excel(name = "支付订单号")
    private String paymentOrderNumber;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 充值本金 */
    @Excel(name = "充值本金")
    private BigDecimal rechargePrincipal;

    /** 赠送金额 */
    @Excel(name = "赠送金额")
    private BigDecimal giftAmount;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date consumptionTime;

    public void setConsumptionRecordId(Long consumptionRecordId) 
    {
        this.consumptionRecordId = consumptionRecordId;
    }

    public Long getConsumptionRecordId() 
    {
        return consumptionRecordId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPaymentOrderNumber(String paymentOrderNumber) 
    {
        this.paymentOrderNumber = paymentOrderNumber;
    }

    public String getPaymentOrderNumber() 
    {
        return paymentOrderNumber;
    }

    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }

    public void setRechargePrincipal(BigDecimal rechargePrincipal) 
    {
        this.rechargePrincipal = rechargePrincipal;
    }

    public BigDecimal getRechargePrincipal() 
    {
        return rechargePrincipal;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setConsumptionTime(Date consumptionTime) 
    {
        this.consumptionTime = consumptionTime;
    }

    public Date getConsumptionTime() 
    {
        return consumptionTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumptionRecordId", getConsumptionRecordId())
            .append("userId", getUserId())
            .append("paymentOrderNumber", getPaymentOrderNumber())
            .append("eventType", getEventType())
            .append("rechargePrincipal", getRechargePrincipal())
            .append("giftAmount", getGiftAmount())
            .append("orderNumber", getOrderNumber())
            .append("consumptionTime", getConsumptionTime())
            .toString();
    }
}
